package net.xuele.learn.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ApplicationStart implements ApplicationRunner {

    @Autowired
    private DefaultMQPushConsumer defaultMQPushConsumer;
    @Override
    public void run(ApplicationArguments args) throws Exception {
//        log.info("shutdown the consumer");
//        defaultMQPushConsumer.shutdown();
    }
}
